home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / sharew / spiele / denker / gnuchess.gem / src / popcolor.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-15  |  597 b   |  30 lines

  1. #include "popcolor.h"
  2.  
  3.  
  4. PopupColourChoice::PopupColourChoice(GEMform& form, int RSCindex, PopupList& popup) :
  5.     ArrowablePopupChoice(form,RSCindex,popup)
  6. {
  7. }
  8.  
  9. void PopupColourChoice::InitObject(GEMrawobject& object)
  10. {
  11.     object.FillPattern(IP_SOLID);
  12.     ArrowablePopupChoice::InitObject(object);
  13. }
  14.  
  15. void PopupColourChoice::SetObject(int choice, GEMrawobject& object)
  16. {
  17.     object.BackCol(choice);
  18. }
  19.  
  20. int PopupColourChoice::NumberOfChoices() const
  21. {
  22.     return 16;
  23. }
  24.  
  25. void PopupColourChoice::SelectObject(int choice, bool yes, GEMrawobject& object)
  26. {
  27.     object.BorderWidth(yes ? 2 : 0);
  28.     object.Crossed(yes);
  29. }
  30.